import { onUnmounted } from 'vue'
export const useCreateNode = (nodeId: string) => {
  const newDiv = document.createElement('div')
  newDiv.id = nodeId
  document.body.appendChild(newDiv)
  onUnmounted(() => {
    document.body.removeChild(newDiv)
  })
}
